{extend name="tpl/site_0/default/pc/public/layout.html" /}
{block name="title"}{$webConfig.WEBNAME}{/block}
{block name="head"}
{/block}
{block name="body"}
{include file="tpl/site_0/default/pc/public/head.html" /}
<div class="container">
    <h1>这是频道页模板</h1>
    <h3>树型商品栏目调用</h3>
    {volist name=":format_tree_cat(goods_cache_cat($siteId),$currentCat['cid'])" id="vo"}
    第一级栏目：{$vo.cat_name} 链接地址：{$vo.url} <a href="{$vo.url}">跳转</a><br/>
    {volist name="vo.children" id="v"}
    |--第二级栏目：{$v.cat_name} 链接地址：{$v.url} <a href="{$v.url}">跳转</a><br/>
    {volist name="v.children" id="x"}
    |----第三级栏目：{$x.cat_name} 链接地址：{$x.url} <a href="{$x.url}">跳转</a><br/>
    {/volist}
    {/volist}
    {/volist}


    <h3>频道页商品调用标签</h3>
    {volist name=":goods_channel_list($siteId,$currentCat['cid'],6)" id="vo" key='x'}
    <hr/>
    栏目名称{$vo.is_son}：<a href="{$vo.url}">{$vo.cat_name}</a>
    {eq name="vo.is_son" value="1"}
    <stront>下级栏目：</stront>
    {volist name=":goods_cat_list($siteId,'son', $vo['cid'],'6')" id="cat"}
    <a href="{$cat.url}">{$cat.cat_name}</a>
    {/volist}
    {/eq}
    <br/>
    <strong>栏目对应商品：</strong><br/>
    {volist name="vo.goodsList" id="v" key='y' empty="暂无商品"}
    <a href="{$v.url}">{$v.fulltitle} 价格¥{$v.simple_price}</a><br/>
    {/volist}
    <hr/>
    {/volist}

</div>
{/block}